using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;
using System.Data;
using System.IO;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class WTRIAssessmentBL
    {
        public static ApplicationCDE GetApplicationInfoByAppID(int appId)
        {
            return WTRIAssessmentDL.GetApplicationInfoByAppID(appId);
        }

        public static ThresholdCDE GetQuestionMaxAnswerWt()
        {
            return WTRIAssessmentDL.GetQuestionMaxAnswerWt();
        }

        public static DataSet dsLoadDataSet(string strStoredProc)
        {
            return WTRIAssessmentDL.dsLoadDataSet(strStoredProc);
        }

        public static DataSet dsLoadAssessmentDataSet(string strProc, int appID)
        {
            return WTRIAssessmentDL.dsLoadAssessmentDataSet(strProc, appID);
        }

        public static int GetValidateScoreExist(int appID)
        {
            return WTRIAssessmentDL.GetValidateScoreExist(appID);
        }

        public static void AddResponses(Guid strID, MemoryStream xmlStream, int intAppID, bool blLocked, string loginName)
        {
            WTRIAssessmentDL.AddResponses(strID, xmlStream, intAppID, blLocked, loginName);
        }

        public static int RestictUpdatesToContacts(int appID, string alias)
        {
            return WTRIAssessmentDL.RestictUpdatesToContacts(appID, alias);
        }

        public static void UpdateApplicationTaskDates(string xmlStream, int intAppID, string loginName)
        {
            WTRIAssessmentDL.UpdateApplicationTaskDates(xmlStream, intAppID, loginName);
        }
    }
}